<template>
	<view>
		<view class="content-box" v-html="textHtml"></view>
		
	</view>
</template>

<script>
	export default {
		data() {
			return {
				textHtml:""
			}
		},
		onLoad(e) {
			console.log('e',e)
			this.loadDoc(e.type);
		},
		methods: {
			loadDoc(type){
				this.$Request.get(this.$api.agreement.getAggreement, {type:type}).then(res => {
					console.log('res',res)
					this.textHtml=res.data.agreementContent;
				})
				
			}
			
		}
	}
</script>

<style scoped>
	.content-box{
		padding: 20rpx 20rpx;
	}
	
	.content-box>>>p {
		border-radius: 20upx;
	}
</style>
